<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML>
<html>
<head>
  <title>后台管理系统</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <link href="/resources/css/dpl-min.css" rel="stylesheet" type="text/css" />
  <link href="/resources/css/bui-min.css" rel="stylesheet" type="text/css" />
  <link href="/resources/css/page-min.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="container">

   <form id="searchForm" class="form-horizontal">
           <input type="hidden" class="control-text" name="id" value="${id}">
            <input type="hidden" class="control-text" name="index" value="${index}">
            <a href="javascript:void(0);" onclick="back()">返回</a>
    </form>

    <div class="search-grid-container">
        <div id="grid"></div>
    </div>
</div>
<script type="text/javascript" src="/resources/js/jquery-1.8.1.min.js"></script>
<script type="text/javascript" src="/resources/js/bui-min.js"></script>
<script type="text/javascript" src="/resources/js/config-min.js"></script>
<script type="text/javascript">
    var store,gridCfg;
  BUI.use(['common/search','common/page','bui/grid','bui/overlay','bui/form'],function (Search,Page,Grid,Overlay,Form) {
    var  columns = [
                {title:'订单号',dataIndex:'no',width:150},
                {title:'消费者昵称',dataIndex:'memberAccount',width:300},
                {title:'收货人',dataIndex:'userName',width:100},
                {title:'订单状态',dataIndex:'status',width:120,renderer:function(value,obj){
                    if(obj.status=='Create'){
                        return "待支付";
                    }else if(obj.status=='Pay'){
                        return "支付成功,待发货";
                    }else if(obj.status=='Fail'){
                        return "支付失败";
                    }else if(obj.status=='Send'){
                        return "已发货";
                    }else if(obj.status=='Suc'){
                        return "已完成";
                    }else if(obj.status=='Close'){
                        return "已关闭";
                    }
                }},
                {title:'订单金额',dataIndex:'totalMoney',width:80},
                {title:'订单时间',dataIndex:'dateStr',width:150}
            ];
            store = Search.createStore('/member/teamOrderData');
            gridCfg = Search.createGridCfg(columns,{

              plugins : [BUI.Grid.Plugins.CheckSelection] // 插件形式引入多选表格
            });
  });

    function back(){
        top.topManager.openPage({
            id : 'user_list',
            isClose : true
        });
    }

</script>
<script type="text/javascript" src="/views/js/list.js"></script>

</body>
</html>  
